package com.cookbook.cookbookservice.mapstructs;

import com.cookbook.cookbookservice.model.domain.CaipuIndexInfoDO;
import com.cookbook.cookbookservice.model.domain.CaipuItemInfoDO;
import com.cookbook.cookbookservice.model.vo.CaipuIndexInfoAdminVO;
import com.cookbook.cookbookservice.model.vo.CaipuIndexInfoVO;
import com.cookbook.cookbookservice.model.vo.CaipuItemInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @program: cookbook-service
 * @ClassName CaipuItemInfoMapStructs
 * @description:
 * @author: MiaoChao
 * @create: 2024-10-28 10:41
 * @Version 1.0
 **/
@Mapper
public interface CaipuIndexInfoMapStructs {

    CaipuIndexInfoMapStructs gm = Mappers.getMapper(CaipuIndexInfoMapStructs.class);

    CaipuIndexInfoDO toDO(CaipuIndexInfoVO caipuIndexInfoVO);

    CaipuIndexInfoVO toVO(CaipuIndexInfoDO caipuIndexInfoDO);

    List<CaipuIndexInfoVO> toVOList(List<CaipuIndexInfoDO> caipuIndexInfoDOList);

    CaipuIndexInfoAdminVO toAdminVO(CaipuIndexInfoDO caipuIndexInfoDO);

    List<CaipuIndexInfoAdminVO> toAdminVOList(List<CaipuIndexInfoDO> caipuIndexInfoDOList);

    CaipuItemInfoVO toItemVO(CaipuItemInfoDO caipuItemInfoDO);
}